trigger updatecaseownertoacc on Account (after update) {

if(trigger.isAfter && trigger.isUpdate)
{
    UpdateCaseOwner updateowner=new UpdateCaseOwner();  
    updateowner.updateopencaseowner(trigger.old,trigger.new); 
}

}